<?php

namespace IMT\OAuthServerBundle\Entity;

use Doctrine\ORM\Mapping as ORM;
use FOS\OAuthServerBundle\Model\Client as BaseClient;

/**
 * IMT\OAuthServerBundle\Entity\Client
 *
 * @ORM\Table(name="oauth_client")
 * @ORM\Entity
 */
class Client extends BaseClient
{
    /**
     * @var integer $id
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    protected $id;

    /**
     * @var string $name
     *
     * @ORM\Column(name="name", type="string", length=255)
     */
    protected $name;
    
    /**
     * @var string
     *
     * @ORM\Column(name="randomId", type="string", length=255)
     */
    protected $randomId;
    
    /**
     * @var string
     *
     * @ORM\Column(name="secret", type="string", length=255)
     */
    protected $secret;
    
    
    /**
     * @var array
     *
     * @ORM\Column(name="redirectUris", type="array")
     */
    protected $redirectUris = array();
    
    /**
     * @var array
     *
     * @ORM\Column(name="allowedGrantTypes", type="array")
     */
    protected $allowedGrantTypes;
    
    public function __construct()
    {
    	parent::__construct();
    	// your own logic
    }
    
    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set name
     *
     * @param string $name
     */
    public function setName($name)
    {
        $this->name = $name;
    }

    /**
     * Get name
     *
     * @return string 
     */
    public function getName()
    {
        return $this->name;
    }
}